<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />		
		<meta name="viewport" content="{{ $configure->keys }}">
		<title>{{ $configure->title }}</title>
		<link href="{{ asset('AmazeUI-2.4.2/assets/css/amazeui.css') }}" rel="stylesheet" type="text/css" />
		<link href="{{ asset('AmazeUI-2.4.2/assets/css/admin.css') }}" rel="stylesheet" type="text/css" />
		<link href="{{ asset('basic/css/demo.css') }}" rel="stylesheet" type="text/css" />
		<link href="{{ asset('css/hmstyle.css') }}" rel="stylesheet" type="text/css" />
		<script src="{{ asset('AmazeUI-2.4.2/assets/js/jquery.min.js') }}"></script>
		<script src="{{ asset('AmazeUI-2.4.2/assets/js/amazeui.min.js') }}"></script>
	</head>
	<body>
		<div class="hmtop">
			<!--顶部导航条 -->
			<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						@if(session('uname'))
						<div class="menu-hd">
							<a href="" target="_top" class="h">{{ session('uname') }},您好！</a>
							<a href="/logOut" target="_top">退出</a>
						</div>
						@else
						<div class="menu-hd">
							<a href="{{ url('/doLogin') }}" target="_top" class="h">亲，请登录</a>
							<a href="/register" target="_top">免费注册</a>
						</div>
						@endif
					</div>
				</ul>				
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a href="{{ url('home/homePage') }}" target="_top" class="h">商城首页</a></div>
					</div>
					<div class="topMessage my-shangcheng">
						<div class="menu-hd MyShangcheng"><a href="{{ url('home/person/index') }}" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
					</div>
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd" href="{{ url('home/cart') }}" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
					</div>
					<div class="topMessage favorite">
						<div class="menu-hd"><a href="{{ url('home/person/collection') }}" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
				</ul>
				</div>
				<!--悬浮搜索框-->
				<div class="nav white">
					<div class="logo"><img src="{{ asset('images/logo.png') }}" /></div>
					<div class="logoBig">
						<li><img src="{{ asset('admin/upload').'/'.$configure->logo }}" /></li>
					</div>
					<div class="search-bar pr">
						<a name="index_none_header_sysc" href="#"></a>
						<form action='{{ url("home/search/id") }}' method='get'>
							<input id="searchInput" name="title" type="text" placeholder="搜索" autocomplete="off">
							<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
						</form>
					</div>
				</div>
				<div class="clear"></div>
			</div>
             <b class="line"></b>
			<div class="shopNav" style="height:592px">
				<div class="slideall" style="height: auto;">			        
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   <div class="nav-cont">
							<ul>
								<li class="index"><a href="{{ url('home/homePage') }}">首页</a></li>
                                <li class="qc"><a href="#">闪购</a></li>
                                <li class="qc"><a href="#">限时抢</a></li>
                                <li class="qc"><a href="#">团购</a></li>
                                <li class="qc last"><a href="#">大包装</a></li>
							</ul>
						    <div class="nav-extra">
						    	<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
						    	<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
						    </div>
						</div>                
			    <div class="bannerTwo" style="clear:both">
                    <!--轮播 -->
					<div class="am-slider am-slider-default scoll" data-am-flexslider id="demo-slider-0">
						<ul class="am-slides">
							 @foreach($lb as $x)
							<li class="banner2"><a><img src="{{ url('admin/upload/'.$x->pic) }}" style="width:760px;height:320px;" /></a></li>
							@endforeach
						</ul>
					</div>
					<div class="clear"></div>	
			    </div>
						<!--侧边导航 -->
						<div id="nav" class="navfull" style="position: static;">
							<div class="area clearfix">
								<div class="category-content" id="guide_2">									
									<div class="category" style="box-shadow:none ;margin-top: 2px;height:550px;">
										<ul class="category-list navTwo" id="js_climit_li">
											@foreach($fl as $f)
											<li>
												<div class="category-info">
													<h3 class="category-name b-category-name"><i><img src="{{ asset('images/cake.png') }}"></i><a class="ml-22" title="点心">{{ $f->name }}</a></h3>
													<em>&gt;</em></div>
												<div class="menu-item menu-in top">
													<div class="area-in">
														<div class="area-bg">
															@foreach($f->f as $dd)
															<div class="menu-srot">
																<div class="sort-side">
																	<dl class="dl-sort">
																		<dt><span title="蛋糕">{{$dd->name}}</span></dt>
																		@foreach($dd->h as $val)
																		<dd><a title="蒸蛋糕" href="{{ url('home/search/'.$val->id) }}"><span>{{$val->name}}</span></a></dd>
																		@endforeach
																	</dl>
																</div>
															</div>
															@endforeach
														</div>
													</div>
												</div>
											<b class="arrow"></b>	
											</li>
											@endforeach
										</ul>
									</div>
								</div>
							</div>
						</div>
						<!--导航 -->
						<script type="text/javascript">
							(function() {
								$('.am-slider').flexslider();
							});
							$(document).ready(function() {
								$("li").hover(function() {
									$(".category-content .category-list li.first .menu-in").css("display", "none");
									$(".category-content .category-list li.first").removeClass("hover");
									$(this).addClass("hover");
									$(this).children("div.menu-in").css("display", "block")
								}, function() {
									$(this).removeClass("hover")
									$(this).children("div.menu-in").css("display", "none")
								});
							})
						</script>
					<!--小导航 -->
					<div class="am-g am-g-fixed smallnav">
						<div class="am-u-sm-3">
							<a href="sort.html"><img src="{{ asset('images/navsmall.jpg') }}" />
								<div class="title">商品分类</div>
							</a>
						</div>
						<div class="am-u-sm-3">
							<a href="#"><img src="{{ asset('images/huismall.jpg') }}" />
								<div class="title">大聚惠</div>
							</a>
						</div>
						<div class="am-u-sm-3">
							<a href="#"><img src="{{ asset('images/mansmall.jpg') }}" />
								<div class="title">个人中心</div>
							</a>
						</div>
						<div class="am-u-sm-3">
							<a href="#"><img src="{{ asset('images/moneysmall.jpg') }}" />
								<div class="title">投资理财</div>
							</a>
						</div>
					</div>					
				<!--各类活动-->
				<div class="row">
					<li><a><img src="{{ asset('images/row1.jpg') }}"/></a></li>
					<li><a><img src="{{ asset('images/row2.jpg') }}"/></a></li>
					<li><a><img src="{{ asset('images/row3.jpg') }}"/></a></li>
					<li><a><img src="{{ asset('images/row4.jpg') }}"/></a></li>
				</div>
				<div class="clear"></div>	
					<!--走马灯 -->
					<div class="marqueenTwo" style="clear:both">
						<span class="marqueen-title"><i class="am-icon-volume-up am-icon-fw"></i>商城头条<em class="am-icon-angle-double-right"></em></span>
						<div class="demo">
							<ul>
								@foreach($gg as $g)
								<li class="title-first"><a target="_blank" href="#" style="color:{{ $g->color }}; display:@if($g->display == 1 )none @else($g->display == 2 )black @endif;">
									<img src="{{ asset('images/TJ2.jpg') }}"></img>
									<span>[{{ $g->title }}]</span>{{ $g->content }}</a></li>
								@endforeach
							</ul>                       
						</div>
					</div>
					<div class="clear"></div>				
				</div>							
				<script type="text/javascript">
					if ($(window).width() < 640) {
						function autoScroll(obj) {
							$(obj).find("ul").animate({
								marginTop: "-39px"
							}, 500, function() {
								$(this).css({
									marginTop: "0px"
								}).find("li:first").appendTo(this);
							})
						}
						$(function() {
							setInterval('autoScroll(".demo")', 3000);
						})
					}
				</script>
			</div>
			<div class="shopMainbg">
				<div class="shopMain" id="shopmain">
					<!--热门活动 -->
					<div class="am-container">					
                     <div class="sale-mt">
		                   <i></i>
		                   <em class="sale-title">限时秒杀</em>
		                   <div class="s-time" id="countdown">
			                    <span class="hh" id="t_h">1</span>
			                    <span class="mm" id="t_m">20</span>
			                    <span class="ss" id="t_s">59</span>
			                    <script type="text/javascript">
								function _fresh()
								{
								// 前台抢购
								 var endtime=new Date("2017/5/11,21:50:12");
								 var nowtime = new Date();
								 var leftsecond=parseInt((endtime.getTime()-nowtime.getTime())/1000);
								 __h=parseInt((leftsecond/3600)%24);
								 __m=parseInt((leftsecond/60)%60);
								 __s=parseInt(leftsecond%60);
								var c=new Date();
								var q=((c.getMilliseconds())%10);
								 document.getElementById("t_h").innerHTML=__h+"时";
								 document.getElementById("t_m").innerHTML=__m+"分";
								 document.getElementById("t_s").innerHTML=__s+"秒";
								 if(leftsecond<=0){
								 document.getElementById("t_h").innerHTML="抢";
								 document.getElementById("t_m").innerHTML="光";
								 document.getElementById("t_s").innerHTML="了";
								 clearInterval(sh);
								 }
								}
								_fresh()
								var sh;
								sh=setInterval(_fresh,1000);
								</script>
		                   </div>
	                  </div>					
					  <div class="am-g am-g-fixed sale">
						@foreach($ms as $s)
						<div class="am-u-sm-3 sale-item">
							<div class="s-img">
								<a href="# "><img src="{{ url('admin/upload/'.$s->pic) }}" /></a>
							</div>
                           <div class="s-info">
                           	   <a href="#"><p class="s-title">{{ $s->title }}</p></a>
                           	   <div class="s-price">￥<b>{{ $s->prace }}</b>
                           	   	  <a class="s-buy" href="">秒杀</a>
                           	   </div>                          	  
                           </div>								
						</div>
						@endforeach	
						</div>
					  </div>
                   </div>
					<div class="clear "></div>
           	@foreach($fl as $f)
			@if($f->upid == 0)
            <div class="f1">
					<!--甜点-->					
					<div class="am-container " >
						<div class="shopTitle ">
							<h4 class="floor-title">{{ $f->name }}</h4>
						</div>
					</div>					
					<div class="am-g am-g-fixed floodSix ">				
						<div class="am-u-sm-5 am-u-md-3 text-one list">							
							<div class="word">
							@foreach($f->f as $dd)
								<a class="outer" href=""><span class="inner"><b class="text">{{ $dd->name }}</b></span></a>		
							@endforeach
						</div>							
							<div class="triangle-topright"></div>	
						</div>			
						@foreach($f->f as $dd)
						@foreach($dd->h as $val)  
             			@if($val->upid == $dd->id)
             			<!-- sp 是商品的拼音简称，p 是品的简称 -->
						@foreach($sp as $p)
						@if($val->id == $p->cid)
						<li>
						<div class="am-u-md-2 am-u-lg-2 text-three">
							<div class="boxLi"></div>							
							<div class="outer-con ">
								<div class="title ">
									{{ $p->title }}
								</div>								
								<div class="sub-title ">
									¥{{ $p->price }}
								</div>
							</div>
							<a href="{{ url('home/introduction').'/'.$p->id }}"><img src="{{ url('admin/upload/'.$p->pic) }}" /></a>
						</div>
						</li>
						@endif    
              			@endforeach 
              			@endif
              			@endforeach
						@endforeach			
					</div>					
					<div class="clear "></div>
            </div>            
            @endif
            @endforeach
					<div class="footer ">
						<div class="footer-hd "  style="margin-left:100px";>
							@foreach($ob as $v)
							<p>	
								<a href="">友情链接</a>
								<b>|</b>
								<a href="{{ $v->url }}" >{{ $v->webname }}</a>
								<b>|</b>
								<a href="# ">网站联系人：{{ $v->rname }}</a>
								<b>|</b>
								<a href="# ">联系人邮箱：{{ $v->email }}</a>
								@if($v->list == 1) 网站描述:{{ $v->msg }}
								@else($v->list == 2) 网站logo<img src="{{ url('admin/upload/'.$v->logo) }}"style="width:50px;height='50px'">
								@endif
							</p>
							@endforeach
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>
		<!--引导 -->
		<div class="navCir">
			<li class="active"><a href="home2.html"><i class="am-icon-home "></i>首页</a></li>
			<li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li>
			<li><a href="{{ url('home/cart') }}"><i class="am-icon-shopping-basket"></i>购物车</a></li>	
			<li><a href="../person/index.html"><i class="am-icon-user"></i>我的</a></li>					
		</div>
		<!--菜单 -->
		<div class=tip>
			<div id="sidebar">
				<div id="wrap">
					<div id="prof" class="item ">
						<a href="# ">
							<span class="setting "></span>
						</a>
						<div class="ibar_login_box status_login ">
							<div class="avatar_box ">
								<p class="avatar_imgbox "><img src="{{ asset('images/no-img_mid_.jpg') }}" /></p>
								<ul class="user_info ">
									<li>用户名：sl1903</li>
									<li>级&nbsp;别：普通会员</li>
								</ul>
							</div>
							<div class="login_btnbox ">
								<a href="# " class="login_order ">我的订单</a>
								<a href="{{ url('home/person/collection') }}" class="login_favorite ">我的收藏</a>
							</div>
							<i class="icon_arrow_white "></i>
						</div>
					</div>
					<div id="shopCart " class="item ">
						<a href="{{ url('home/cart') }}">
							<span class="message "></span>
						</a>
						<p>
							购物车
						</p>
						<p class="cart_num ">0</p>
					</div>
					<div id="asset " class="item ">
						<a href="# ">
							<span class="view "></span>
						</a>
						<div class="mp_tooltip ">
							我的资产
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>
					<div id="foot " class="item ">
						<a href="# ">
							<span class="zuji "></span>
						</a>
						<div class="mp_tooltip ">
							我的足迹
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>
					<div id="brand " class="item ">
						<a href="{{ url('home/person/collection') }}">
							<span class="wdsc "><img src="{{ asset('images/wdsc.png') }}" /></span>
						</a>
						<div class="mp_tooltip ">
							我的收藏
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>
					<div id="broadcast " class="item ">
						<a href="# ">
							<span class="chongzhi "><img src="{{ asset('images/chongzhi.png') }}" /></span>
						</a>
						<div class="mp_tooltip ">
							我要充值
							<i class="icon_arrow_right_black "></i>
						</div>
					</div>
					<div class="quick_toggle ">
						<li class="qtitem ">
							<a href="# "><span class="kfzx "></span></a>
							<div class="mp_tooltip ">客服中心<i class="icon_arrow_right_black "></i></div>
						</li>
						<!--二维码 -->
						<li class="qtitem ">
							<a href="#none "><span class="mpbtn_qrcode "></span></a>
							<div class="mp_qrcode " style="display:none; "><img src="{{ asset('images/weixin_code_145.png') }}" /><i class="icon_arrow_white "></i></div>
						</li>
						<li class="qtitem ">
							<a href="#top" class="return_top"><span class="top"></span></a>
						</li>
					</div>
					<!--回到顶部 -->
					<div id="quick_links_pop" class="quick_links_pop hide"></div>
				</div>
			</div>
			<div id="prof-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					我
				</div>
			</div>
			<div id="shopCart-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					购物车
				</div>
			</div>
			<div id="asset-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					资产
				</div>
				<div class="ia-head-list ">
					<a href="# " target="_blank " class="pl ">
						<div class="num ">0</div>
						<div class="text ">优惠券</div>
					</a>
					<a href="# " target="_blank " class="pl ">
						<div class="num ">0</div>
						<div class="text ">红包</div>
					</a>
					<a href="# " target="_blank " class="pl money ">
						<div class="num ">￥0</div>
						<div class="text ">余额</div>
					</a>
				</div>
			</div>
			<div id="foot-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					足迹
				</div>
			</div>
			<div id="brand-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					收藏
				</div>
			</div>
			<div id="broadcast-content " class="nav-content ">
				<div class="nav-con-close ">
					<i class="am-icon-angle-right am-icon-fw "></i>
				</div>
				<div>
					充值
				</div>
			</div>
		</div>
		<script>
			window.jQuery || document.write('<script src="basic/js/jquery.min.js"><\/script>');
		</script>
		<script type="text/javascript " src="{{ asset('basic/js/quick_links.js') }} "></script>
	</body>
</html>